﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GeCo_MenuPrincipal
{
    class CCaseCarte
    {
        private int x;
        private int y;
        private List<CEtreVivant> listeEtreVivant;

        public String NomEvenement;
        public int idEvent;

        public CCaseCarte(int _x, int _y)
        {
            this.listeEtreVivant = new List<CEtreVivant>();
            this.x = _x;
            this.y = _y;
        }

        public int Y
        {
            get { return y; }
            set { y = value; }
        }
        public int X
        {
            get { return x; }
            set { x = value; }
        }

        public void AjouterEtreVivant(CEtreVivant _etreVivant)
        {
            this.listeEtreVivant.Add(_etreVivant);
            _etreVivant.X = this.X;
            _etreVivant.Y = this.Y;
        }

        public void SupprimerEtreVivant(CEtreVivant _etreVivant)
        {
            this.listeEtreVivant.Remove(_etreVivant);
        }

        public List<CEtreVivant> ListeEtreVivant
        {
            get { return listeEtreVivant; }
            set { listeEtreVivant = value; }
        }
    }
}
